/**
 * 
 */
package com.arx.interactive.data;

/**
 * @author Donald
 */
public final class EquipItemElements {
	private int		flags;
	private short	special;
	private float	value;
	/**
	 * Gets the special.
	 * @return {@link short}
	 */
	public short getSpecial() {
		return special;
	}
	/**
	 * Gets the value.
	 * @return {@link float}
	 */
	public float getValue() {
		return value;
	}
	/**
	 * Determines if this element has a specific flag.
	 * @param flag the flag
	 * @return true if the flag is assigned; false otherwise
	 */
	public boolean hasFlag(final int flag) {
		return (flags & flag) == flag;
	}
	/**
	 * Removes a flag.
	 * @param flag the flag
	 */
	public void removeFlag(final int flag) {
		flags = flags & ~flag;
	}
}
